package com.gl.saasservice.house.repository;

import com.gl.saasservice.house.entity.EstateRentBill;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface EstateRentBillRepository extends PagingAndSortingRepository<EstateRentBill, Long>, JpaSpecificationExecutor<EstateRentBill>, JpaRepository<EstateRentBill, Long> {
	List<EstateRentBill> findByIdIn(List<Long> ids);

	List<EstateRentBill> findByHouseIdAndPaymentStatus(String houseId, Integer paymentStatus);

	List<EstateRentBill> findByHouseId(String houseId);
}
